projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d41d5dd
)
(buf_charpos_to_bytepos, buf_bytepos_to_charpos): Use BEG and BEG_BYTE.
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Mon, 1 Apr 2002 23:07:40 +0000
(23:07 +0000)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Mon, 1 Apr 2002 23:07:40 +0000
(23:07 +0000)
src/marker.c
patch
|
blob
|
history
diff --git
a/src/marker.c
b/src/marker.c
index 475e5ffad6d621f60f85518c2863e9c7dbb787c6..9d24fb5ff8ecd4f8f2bef70cb7ca8c3942e7706d 100644
(file)
--- a/
src/marker.c
+++ b/
src/marker.c
@@
-149,8
+149,8
@@
buf_charpos_to_bytepos (b, charpos)
if (best_above == best_above_byte)
return charpos;
- best_below =
1
;
- best_below_byte =
1
;
+ best_below =
BEG
;
+ best_below_byte =
BEG_BYTE
;
/* We find in best_above and best_above_byte
the closest known point above CHARPOS,
@@
-326,8
+326,8
@@
buf_bytepos_to_charpos (b, bytepos)
if (best_above == best_above_byte)
return bytepos;
- best_below =
1
;
- best_below_byte =
1
;
+ best_below =
BEG
;
+ best_below_byte =
BEG_BYTE
;
CONSIDER (BUF_PT_BYTE (b), BUF_PT (b));
CONSIDER (BUF_GPT_BYTE (b), BUF_GPT (b));